package kds.network;

import kds.network.http.HTTPRequestLoaderManager;
import android.annotation.SuppressLint;

/**
 * The Class HTTPNetworkConfig.
 */
@SuppressLint("SdCardPath")
public class HTTPNetworkConfig {

	/**
	 * The Application package name.This be variableiable need initial if you
	 * want to use internal memory for cache response
	 * 
	 */
	public static String ApplicationPackageName = "default_package";

	/**
	 * The Constant DefaultInternalCachePath.This is default path for internal
	 * cache folder</BR> This variable have default values is:
	 * /data/data/%package%/files Normal Unnecessary changed .If you change be
	 * careful
	 */
	public static final String DefaultInternalCachePath = "/data/data/%package%/files";

	/**
	 * The Constant DefaultExternalCachePath.This is default path path for
	 * external folder</BR> This variable have default values is: /sdcard/cache
	 * 
	 * */
	public static final String DefaultExternalCachePath = "/sdcard/cache";

	/** The default request read time out. */
	public static int DEFAULT_READ_TIME_OUT = 15000;

	/** The default connection time out. */
	public static int DEFAULT_CONNECTION_TIME_OUT = 15000;

	/** The default cache sync expired time. */
	public static long DEFAULT_CACHE_SYNC_EXPIRED_TIME = 60 * 60 * 12;// 12 h

	/**
	 * The performance fast network max connection.
	 * 
	 * @see HTTPRequestLoaderManager#performanceNetwork(android.content.Context)
	 */
	public static int PERFORMANCE_FAST_NETWORK_MAX_CONNECTION = 2;

	/**
	 * The performance slow network max connection. * @see
	 * HTTPRequestLoaderManager#performanceNetwork(android.content.Context)
	 */
	public static int PERFORMANCE_SLOW_NETWORK_MAX_CONNECTION = 1;

	/**
	 * The default network max connection. The variable is default max network
	 * connection run same time before you run before you run
	 * {@link HTTPRequestLoaderManager#performanceNetwork(android.content.Context)
	 * performanceNetwork} from HTTPRequestLoaderManager
	 * 
	 * */
	public static int DEFAULT_NETWORK_MAX_CONNECTION = 1;

}
